fix(ci-cleaner): add mandatory exit protocol to always produce safe outputs#24182
Merged
fix(ci-cleaner): add mandatory exit protocol to always produce safe outputs#24182
Conversation
…re always produced Agent-Logs-Url: https://github.com/github/gh-aw/sessions/e198ac68-27c1-421b-af25-e35d1913ca99 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CI Cleaner workflow failure
fix(ci-cleaner): add mandatory exit protocol to always produce safe outputs
Apr 2, 2026
pelikhan
approved these changes
Apr 2, 2026
pelikhan
approved these changes
Apr 2, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a “Mandatory Exit Protocol” to the CI cleaner workflow/agent docs to ensure every run ends by producing a safe output (create_pull_request or noop), even when time/turns are running out.
Changes:
- Add a Mandatory Exit Protocol section to the CI cleaner workflow instructions.
- Add a Mandatory Exit Protocol section to the
ci-cleaneragent guidance.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/hourly-ci-cleaner.md | Documents a strict requirement to call create_pull_request/noop before session end. |
| .github/agents/ci-cleaner.agent.md | Aligns the CI cleaner agent instructions with the same mandatory safe-output exit protocol. |
Comments suppressed due to low confidence (1)
.github/workflows/hourly-ci-cleaner.md:181
- Same issue here:
git add -A && git commitmay open an editor and hang. Recommend using a non-interactive commit command (e.g., always include-m) to ensure the exit protocol reliably produces a safe output.
- Stage and commit whatever changes you have made so far (`git add -A && git commit`)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI Cleaner agent ran for ~41 minutes working on CI fixes, exhausted its conversation turns, and exited without calling any safe-output tool — producing the "no safe outputs generated" failure.
Changes
.github/workflows/hourly-ci-cleaner.md— Added## Mandatory Exit Protocolsection between "Token Budget Awareness" and "Pull Request Guidelines".github/agents/ci-cleaner.agent.md— Added## Mandatory Exit Protocolsection before "Workflow & Best Practices"Both sections enforce:
create_pull_requestif any changes were made (even partial), aftergit add -A && git commitnoopif no changes were made (CI already passing, can't reproduce, or too complex)create_pull_requestrather than continuing to attempt more fixes — never exit without a safe outputWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://api.github.com/graphql/usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw(http block)/usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw -pack /home/REDACTED/work/gh-aw/gh-aw/cmd/gh-aw/main.go(http block)https://api.github.com/repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b/usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq .object.sha(http block)https://api.github.com/repos/github/gh-aw/usr/bin/gh gh api /repos/github/gh-aw --jq .visibility(http block)https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v0/usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0 --jq .object.sha(http block)https://api.github.com/repos/githubnext/agentics/git/ref/tags//usr/bin/gh gh api /repos/githubnext/agentics/git/ref/tags/# --jq .object.sha(http block)If you need me to access, download, or install something from one of these locations, you can either: